import request from '@/utils/request'

// 获取渠道列表
export function getTableDataApi(data) {
    return request({
        url: '/api/system.store/index',
        method: 'post',
        data: data
    })
}

export function getAllApi(data) {
    return request({
        url: '/api/system.store/getAll',
        method: 'post',
        data: data
    })
}

export function readStoreApi(data) {
    return request({
        url: '/api/system.store/read',
        method: 'post',
        data: data
    })
}

export function createStoreApi(data) {
    return request({
        url: '/api/system.store/create',
        method: 'post',
        data: data
    })
}

export function saveStoreApi(data) {
    return request({
        url: '/api/system.store/save',
        method: 'post',
        data: data
    })
}

export function deleteStoreApi(data) {
    return request({
        url: '/api/system.store/delete',
        method: 'post',
        data: data
    })
}

// 获取宴会厅列表
export function getHallListApi(data) {
    return request({
        url: '/api/system.hall/index',
        method: 'post',
        data: data
    })
}

// 添加宴会厅信息
export function addHallApi(data) {
    return request({
        url: '/api/system.hall/create',
        method: 'post',
        data: data
    })
}

// 更新宴会厅信息
export function updateHallApi(data) {
    return request({
        url: '/api/system.hall/save',
        method: 'post',
        data: data
    })
}

// 删除宴会厅信息
export function deleteHallApi(data) {
    return request({
        url: '/api/system.hall/delete',
        method: 'post',
        data: data
    })
}

// 获取Shape列表
export function getShapeListApi(data) {
    return request({
        url: '/api/system.shape/index',
        method: 'post',
        data: data
    })
}

// 添加Shape信息
export function addShapeApi(data) {
    return request({
        url: '/api/system.shape/create',
        method: 'post',
        data: data
    })
}

// 更新Shape信息
export function updateShapeApi(data) {
    return request({
        url: '/api/system.shape/save',
        method: 'post',
        data: data
    })
}

// 删除Shape信息
export function deleteShapeApi(data) {
    return request({
        url: '/api/system.shape/delete',
        method: 'post',
        data: data
    })
}

// menu
export function getMenuListApi(data) {
    return request({
        url: '/api/system.store_menu/getList',
        method: 'post',
        data: data
    }) 
}

export function addMenuApi(data) {
    return request({
        url: '/api/system.store_menu/create',
        method: 'post',
        data: data
    })
}

export function updateMenuApi(data) {
    return request({
        url: '/api/system.store_menu/save',
        method: 'post',
        data: data
    })
}

// delete
export function deleteMenuApi(data) {
    return request({
        url: '/api/system.store_menu/delete',
        method: 'post',
        data: data
    })
}
